#ifndef HOVERGAME_H
#define HOVERGAME_H

#include <QCheckBox>

#include <QEvent>

#include "games/basegame.h"

// HoverGame: try to catch the checkbox
class HoverGame : public BaseGame
{
    Q_OBJECT

public:
    // Constructor
    explicit HoverGame(QWidget *parent = 0, int difflvl = 1);

    // Members
    bool isSolved();
    QString hint() { return "Do not try and bend the spoon - that's impossible. Instead, only try to realize the truth."; }

    bool eventFilter(QObject *, QEvent *);

    void enableNeighbourhoods(int r, int c);
    void disableNeighbourhoods(int r, int c);
private:
    int n_rows;
    int n_cols;

    QCheckBox ***map;
    QCheckBox * current_check;

    int curr_row;
    int curr_col;
};

#endif // HOVERGAME_H
